package com.longai.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import util.Page;

import com.longai.dao.*;
import com.longai.model.*;
@Service
public class MomentCommentService {
	@Autowired
	private MomentCommentDAO momentCommentDAO;

	public MomentComment findById(int id){
		return momentCommentDAO.findById(id);
	}
	public void save(MomentComment momentcomment){
		momentCommentDAO.save(momentcomment);
	}
	public void delete(MomentComment momentcomment){
		momentCommentDAO.delete(momentcomment);
	}
	public List<MomentComment> findAll(){
		return momentCommentDAO.findAll();
	}
	public Page findByMomentId(String userId,String currentPage,String amount){
		return momentCommentDAO.findByMomentId(userId,currentPage,amount);
	}
	public MomentComment findByCommentMomentId(String userId){
		return momentCommentDAO.findByMomentCommentId(userId);
	}
}
